# Maintainer: Giancarlo Razzolini <grazzolini@archlinux.org>
# Contributor: Daniel Isenmann <daniel@archlinux.org>
# Contributor: wenLiangcan <boxeed at gmail dot com>

pkgname=nuget
pkgver=5.10.0
pkgrel=1
pkgdesc="Package manager for .NET."
arch=('any')
url="https://www.nuget.org"
license=('APACHE')
depends=('mono' 'sh')
source=("https://dist.nuget.org/win-x86-commandline/v${pkgver}/nuget.exe"
        "${pkgname}"
        "${pkgname}.pc")
install="${pkgname}.install"
md5sums=('5efd3f99dd42fdc19db6c8add59bf188'
         'ec321eaa807564b85aacfafb227f7f55'
         'ffb7d95fb39f72c9619c72db91ec36a0')
sha512sums=('c4b7375e46cdb843096ce491b9809e0dc86773ba7b6333f13d49ec414b2953112df82ee8b833fd31be0cc7fe0fff1af88f3c07aa9553ad03f7f6c5a6eec2057e'
            'd19b4f7683aeb2891397060c6ed0fabe9083726268825d5338a7a95ef5d7aaa66db41226ae3a3f26eecbbeea4cdee0bdeeedf61e7fc5017a568ebe2753e2ada6'
            '50f77fdfc089afc516325057e2e4efdea353c09626073fb07457acf728268ac5e131e785d394b70c9db0ca6ae96e425d882cdf2b2b013c864dc91c32b85e508f')

package() {
    install -Dm 0644 nuget.pc "${pkgdir}"/usr/lib/pkgconfig/nuget.pc

    install -Dm 0644 nuget.exe "${pkgdir}"/usr/lib/nuget/nuget.exe
    install -Dm 0755 nuget "${pkgdir}"/usr/bin/nuget
}
